#pragma warning disable 0618
using System;
using System.Collections.Generic;
using Table.DataModel;
namespace Table.Dao
{
    public class TableSailorSkillDao:DaoBase<TableSailorSkill>
    {
        public override string GetFileName()
        {
            return "TableSailorSkill.csv";
        }
        public override void BuildIndex()
        {
            if (cacheList != null)
            {
                cachePrimaryInt = new Dictionary<int, TableSailorSkill>(cacheList.Count);
            }
            base.BuildIndex();
        }
        public override void AddPrimaryIndex(TableSailorSkill model)
        {
            #if UNITY_EDITOR
            if(cachePrimaryInt.ContainsKey(model.SkillId)) UnityEngine.Debug.LogError("数据表id重复:TableSailorSkill->id: " + model.SkillId);
            #endif
            cachePrimaryInt[model.SkillId] = model;
        }
        protected override TableSailorSkill ParseRowData(string[] rowData)
        {
            TableSailorSkill data = new TableSailorSkill();
            if (!string.IsNullOrEmpty(rowData[0]))
            {
                data.SkillId = int.Parse(rowData[0]);
            }
            if (!string.IsNullOrEmpty(rowData[1]))
            {
                data.SkillReleaseType = int.Parse(rowData[1]);
            }
            if (!string.IsNullOrEmpty(rowData[2]))
            {
                data.SkillElementType = int.Parse(rowData[2]);
            }
            if (!string.IsNullOrEmpty(rowData[3]))
            {
                data.SkillState = ParseData<int>(rowData[3]);
            }
            if (!string.IsNullOrEmpty(rowData[4]))
            {
                data.AttackType = int.Parse(rowData[4]);
            }
            if (!string.IsNullOrEmpty(rowData[5]))
            {
                data.SailorSkillAnimationId = int.Parse(rowData[5]);
            }
            if (!string.IsNullOrEmpty(rowData[6]))
            {
                data.SkillLength = double.Parse(rowData[6]);
            }
            if (!string.IsNullOrEmpty(rowData[7]))
            {
                data.SkillComboLength = double.Parse(rowData[7]);
            }
            if (!string.IsNullOrEmpty(rowData[8]))
            {
                data.SkillLastLength = double.Parse(rowData[8]);
            }
            if (!string.IsNullOrEmpty(rowData[9]))
            {
                data.IsTotalDamageShow = int.Parse(rowData[9]);
            }
            if (!string.IsNullOrEmpty(rowData[10]))
            {
                data.TotalDamageShowTimer = double.Parse(rowData[10]);
            }
            if (!string.IsNullOrEmpty(rowData[11]))
            {
                data.Audio = rowData[11];
            }
            if (!string.IsNullOrEmpty(rowData[12]))
            {
                data.AttackStandType = int.Parse(rowData[12]);
            }
            if (!string.IsNullOrEmpty(rowData[13]))
            {
                data.AttackStandFixValue = double.Parse(rowData[13]);
            }
            if (!string.IsNullOrEmpty(rowData[14]))
            {
                data.CameraClass = int.Parse(rowData[14]);
            }
            if (!string.IsNullOrEmpty(rowData[15]))
            {
                data.IsCameraDynamic = int.Parse(rowData[15]);
            }
            if (!string.IsNullOrEmpty(rowData[16]))
            {
                data.CameraSelectRuleHeightFix = double.Parse(rowData[16]);
            }
            if (!string.IsNullOrEmpty(rowData[17]))
            {
                data.CameraSelectRuleAboutFix = double.Parse(rowData[17]);
            }
            if (!string.IsNullOrEmpty(rowData[18]))
            {
                data.CameraSelectRuleUpDownFix = double.Parse(rowData[18]);
            }
            if (!string.IsNullOrEmpty(rowData[19]))
            {
                data.TargetSelectRuleSingle = int.Parse(rowData[19]);
            }
            if (!string.IsNullOrEmpty(rowData[20]))
            {
                data.SelectRuleMuti = int.Parse(rowData[20]);
            }
            if (!string.IsNullOrEmpty(rowData[21]))
            {
                data.ComboCounter = int.Parse(rowData[21]);
            }
            if (!string.IsNullOrEmpty(rowData[22]))
            {
                data.ComboFixTimeValue = double.Parse(rowData[22]);
            }
            if (!string.IsNullOrEmpty(rowData[23]))
            {
                data.DeadEffect = int.Parse(rowData[23]);
            }
            if (!string.IsNullOrEmpty(rowData[24]))
            {
                data.CamRevertType = int.Parse(rowData[24]);
            }
            if (!string.IsNullOrEmpty(rowData[25]))
            {
                data.ShowCoverTime = ParseData<double>(rowData[25]);
            }
            if (!string.IsNullOrEmpty(rowData[26]))
            {
                data.ShowCoverType = ParseData<int>(rowData[26]);
            }
            if (!string.IsNullOrEmpty(rowData[27]))
            {
                data.IsSpecialCam = int.Parse(rowData[27]);
            }
            if (!string.IsNullOrEmpty(rowData[28]))
            {
                data.SpecialCamUrl = rowData[28];
            }
            if (!string.IsNullOrEmpty(rowData[29]))
            {
                data.SpecialCamSkipTimePoint = double.Parse(rowData[29]);
            }
            if (!string.IsNullOrEmpty(rowData[30]))
            {
                data.SpecialCamOffset = rowData[30];
            }
            if (!string.IsNullOrEmpty(rowData[31]))
            {
                data.SpecialCamJumpBackType = int.Parse(rowData[31]);
            }
            if (!string.IsNullOrEmpty(rowData[32]))
            {
                data.IsGrabbingSkill = int.Parse(rowData[32]);
            }
            if (!string.IsNullOrEmpty(rowData[33]))
            {
                data.GrabBoneSourceType = int.Parse(rowData[33]);
            }
            if (!string.IsNullOrEmpty(rowData[34]))
            {
                data.GrabBoneName = rowData[34];
            }
            if (!string.IsNullOrEmpty(rowData[35]))
            {
                data.GrabStartTime = double.Parse(rowData[35]);
            }
            if (!string.IsNullOrEmpty(rowData[36]))
            {
                data.GrabLastTime = double.Parse(rowData[36]);
            }
            if (!string.IsNullOrEmpty(rowData[37]))
            {
                data.Effects = ParseData<int>(rowData[37]);
            }
            if (!string.IsNullOrEmpty(rowData[38]))
            {
                data.EffBones = ParseStringIntern(rowData[38]);
            }
            if (!string.IsNullOrEmpty(rowData[39]))
            {
                data.WEffects = ParseData<int>(rowData[39]);
            }
            if (!string.IsNullOrEmpty(rowData[40]))
            {
                data.WEffBones = ParseStringIntern(rowData[40]);
            }
            if (!string.IsNullOrEmpty(rowData[41]))
            {
                data.ForceSelfPosition = ParseStringIntern(rowData[41]);
            }
            if (!string.IsNullOrEmpty(rowData[42]))
            {
                data.SpecialLightAnimResPath = rowData[42];
            }
            if (!string.IsNullOrEmpty(rowData[43]))
            {
                data.BuffFeatureEffectId = int.Parse(rowData[43]);
            }
            return data;
        }
    }
}
